<?php
/*
|--------------------------------------------------------------------------
| Web Routes: Namespace M
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::domain('m.'.env('APP_DOMAIN'))->namespace('M')->group(function () {

    Route::middleware('user.auth')->group(function () {
        Route::prefix('/user')->group(function () {
            //  个人中心首页
            Route::get('/index', 'UserControoler@index');

            Route::get('/profile', 'UserController@profile');

            Route::get('/changePwd', 'UserController@changePwd');

            Route::get('/oldEmailVerify', 'UserController@oldEmailVerify');

            Route::get('/newEmailVerify', 'UserController@newEmailVerify');

            
        });
    });
});